//
//  SPTaggedTextView.h
//  Sophie
//
//  Created by Anton Chebotaev on 17/10/09.
//  Copyright 2009 IFMO. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <LJClientKit/LJClientKit.h>


@interface SPTaggedTextView : NSTextView <NSCoding, NSComboBoxDataSource> {
	NSWindow *currentSheet;	
	
	IBOutlet NSWindow *URLWindow;
	IBOutlet NSTextField *linkTitleField;
	IBOutlet NSTextField *linkURLField;
	IBOutlet NSTextField *linkAltField;
	
	IBOutlet NSWindow *pictureWindow;
	IBOutlet NSTextField *imageURLField;
	IBOutlet NSTextField *imageAltField;
	
	IBOutlet NSWindow *cutWindow;
	IBOutlet NSTextField *cutTitleField;
	IBOutlet NSTextView *cutContentField;

	IBOutlet NSWindow *ljuserWindow;
	IBOutlet NSComboBox *ljuserNameField;	
}

#pragma mark Additional Setters
- (void)setAccount:(LJAccount *)anAccount;

#pragma mark Text Formatting Tools
- (IBAction)bold:(id)sender;
- (IBAction)italic:(id)sender;
- (IBAction)underlined:(id)sender;
- (IBAction)strikethrough:(id)sender;
- (IBAction)bigger:(id)sender;
- (IBAction)smaller:(id)sender;
- (IBAction)showColors:(id)sender;
- (IBAction)alignLeftTag:(id)sender;
- (IBAction)alignRightTag:(id)sender;
- (IBAction)alignCenterTag:(id)sender;
//- (IBAction)clearFormat:(id)sender;

#pragma mark Interface Tools
- (IBAction)insertHyperlink:(id)sender;
- (IBAction)applyInsertHyperlink:(id)sender;

- (IBAction)insertLJCut:(id)sender;
- (IBAction)applyInsertLJCut:(id)sender;

- (IBAction)insertLJUser:(id)sender;
- (IBAction)applyInsertLJUser:(id)sender;

- (IBAction)insertPicture:(id)sender;
- (IBAction)applyInsertPicture:(id)sender;

- (void)stopModalSheet:(id)sender;

@end
